package solution.T0215_1_Clipboard.command;

import solution.T0215_1_Clipboard.Clipboard;

public class CopyCommand extends Command {
    private final String content;

    public CopyCommand(String content) {
        super();
        this.content = content;
    }

    @Override
    public void execute() {
        Clipboard clipboard = Clipboard.getInstance();
        clipboard.setContent(content);
        clipboard.addHistory(this);
    }

    public String getContent() {
        return content;
    }
}
